TMForum REST Service (1.01)

Download OpenAPI specification:Download

The TMForum API is a RESTful adapter that exposes IDI Billing customer, billing, and document data using TM Forum Open API resource models. It currently implements a subset of TMF629 Customer Management (v5), TMF678 Customer Bill Management (v5), and TMF667 Document Management (v4).

System Integrity

Resources related to System Integrity.

Health Check

Use to check whether or not the TMForum service is up and running.

Responses

Customer

Resources related to customers (TMF629 Customer Management v5). A TMF customer maps to an IDI Billing customer account; the customer id is the IDI Billing account number.

List Customers

Retrieves a page of customers. [Rev 1.00]

Note

  • Prospect customers (customer type ID 2) and customers whose disconnect date is in the past are excluded.
  • Results are ordered by IDI Billing customer ID.
Authorizations:
SWT
query Parameters
limit
integer
Example: limit=10

Requested number of resources to be provided in the response. When omitted, the default page size of the underlying IDI Billing service is used.

offset
integer
Example: offset=0

Requested index for the start of resources to be provided in the response. Used together with limit to page through results.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create Customer

Creates a new IDI Billing customer account. [Rev 1.00]

Authorizations:
SWT
Request Body schema: application/json
name
required
string

Name of the customer.

required
object (EngagedParty)

The party engaged in the customer role. id and @referredType are stored on the account so the customer can be linked back to the party in the calling system.

Array of objects (Characteristic)

IDI Billing account attributes.

Array of any (ContactMedium)

Responses

Request samples

Content type
application/json
{
  • "name": "Jane Doe",
  • "engagedParty": {
    },
  • "characteristic": [
    ],
  • "contactMedium": [
    ]
}

Response samples

Content type
application/json
{
  • "@type": "Customer",
  • "id": "100200300",
  • "name": "Jane Doe",
  • "status": "active",
  • "engagedParty": {
    },
  • "characteristic": [
    ],
  • "contactMedium": [
    ],
  • "validFor": {
    }
}

Get Customer

Retrieves a customer by account number. [Rev 1.00]

Authorizations:
SWT
path Parameters
id
required
string
Example: 100200300

The IDI Billing account number of the customer.

Responses

Response samples

Content type
application/json
{
  • "@type": "Customer",
  • "id": "100200300",
  • "name": "Jane Doe",
  • "status": "active",
  • "engagedParty": {
    },
  • "characteristic": [
    ],
  • "contactMedium": [
    ],
  • "validFor": {
    }
}

Update Customer

Partially updates a customer by account number and returns the updated customer. [Rev 1.00]

Authorizations:
SWT
path Parameters
id
required
string
Example: 100200300

The IDI Billing account number of the customer.

Request Body schema: application/json
required
object (EngagedParty)

The party engaged in the customer role. id and @referredType are stored on the account so the customer can be linked back to the party in the calling system.

name
string

Name of the customer.

status
string
Enum: "active" "inactive" "suspended"

Account status of the customer.

Array of objects (Characteristic)

IDI Billing account attributes.

Array of any (ContactMedium)

Responses

Request samples

Content type
application/json
{
  • "engagedParty": {
    },
  • "status": "active",
  • "contactMedium": [
    ]
}

Response samples

Content type
application/json
{
  • "@type": "Customer",
  • "id": "100200300",
  • "name": "Jane Doe",
  • "status": "active",
  • "engagedParty": {
    },
  • "characteristic": [
    ],
  • "contactMedium": [
    ],
  • "validFor": {
    }
}

Customer Bill

Resources related to customer bills (TMF678 Customer Bill Management v5). A TMF customer bill maps to an IDI Billing invoice; the customer bill id is the IDI Billing invoice number.

List Customer Bills

Retrieves a page of customer bills, optionally for a single billing account. [Rev 1.00]

Note

  • Results are ordered by IDI Billing customer ID.
  • A 404 is returned when no invoices match.
Authorizations:
SWT
query Parameters
limit
integer
Example: limit=10

Requested number of resources to be provided in the response. When omitted, the default page size of the underlying IDI Billing service is used.

offset
integer
Example: offset=0

Requested index for the start of resources to be provided in the response. Used together with limit to page through results.

id
string
Example: id=100200300

The IDI Billing account number to return customer bills for. When omitted, customer bills for all accounts are returned.

Responses

Response samples

Content type
application/json
[]

Get Customer Bill

Retrieves a customer bill by invoice number. [Rev 1.00]

Authorizations:
SWT
path Parameters
id
required
integer
Example: 5001234

The IDI Billing invoice number.

Responses

Response samples

Content type
application/json
{}

Applied Customer Billing Rate

Resources related to applied customer billing rates (TMF678 Customer Bill Management v5). Applied customer billing rates are the charges, credits, payments, adjustments, usage, and taxes that make up an invoice.

List Applied Customer Billing Rates

Retrieves the applied customer billing rates (charges, credits, payments, adjustments, usage, and taxes) that make up a customer bill. [Rev 1.00]

Note

  • When bill.id is omitted, the rates for the most recent non-prebill invoice in the environment are returned.
  • Each invoice detail source is retrieved independently. If one source cannot be retrieved, the rates from the remaining sources are still returned.

Sources

Each rate is built from one of the following IDI Billing invoice details:

  • Invoice features (recurring, non-recurring, discounts, penalties, installment plans) : id is {invoiceNumber}-{invoiceDetailID}.
  • Ledger items (payments and adjustments) : id is {invoiceNumber}-{ledgerItemID}.
  • Finance charge (only when non-zero) : id is the invoice number.
  • Usage by service : id is the service ID.
  • Service-level taxes : id is the service ID. Carries appliedTax.
  • Account-level taxes not already reported at the service level : id is the tax ID. Carries appliedTax.

Returned characteristics

  • idi.invoiceDetailType (StringCharacteristic) : The IDI Billing invoice detail type (for example usage, Taxes, Finance Charge).
  • idi.invoiceDetailSubType (StringCharacteristic) : The detail sub-type (for example Service Level, Account Level, or the service catalog).
Authorizations:
SWT
query Parameters
bill.id
integer
Example: bill.id=5001234

The IDI Billing invoice number to return rates for.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Document

Resources related to documents (TMF667 Document Management v4), such as the rendered invoice for a customer bill.

Get Document

Retrieves the content of a document, such as a rendered invoice. [Rev 1.00]

Note

  • The response body is the document file itself, not a TMF Document resource. The Content-Type header reflects the stored file type (for example application/pdf).
  • The href returned in CustomerBill.billDocument links to this operation.
Authorizations:
SWT
path Parameters
id
required
string
Example: invoice-5001234

The document identifier in the format {documentType}-{documentId}. Everything before the first - is the document type. For example, invoice-5001234 is the invoice document for invoice number 5001234.

Responses

Response samples

Content type
application/json
{
  • "@type": "Error",
  • "code": "400",
  • "reason": "Bad Request",
  • "message": "Document id 'invoice' is not in the expected '{documentType}-{documentId}' format.",
  • "status": "400"
}

Release Notes

Release Notes 1.00

Release Notes 1.00

  • Note: Internal changes were applied to this release. There were no external API changes.

Release Notes 1.00